package cn.chinaiptv.apkmanager.service;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

import javax.servlet.ServletException;
import javax.servlet.ServletInputStream;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;


/**
 * Servlet implementation class CheckupLauncherAPK
 */
public class CheckupLauncherAPK extends HttpServlet {
	private static final long serialVersionUID = 1L;
    
    public CheckupLauncherAPK() {
        super();
    }


	
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		
		request.setCharacterEncoding("UTF-8");
	    response.setCharacterEncoding("UTF-8");
	    response.setContentType("application/json;charset=utf-8");
	    
	    //获取请求参数
	   ServletInputStream requestInputStream = request.getInputStream();
	   BufferedReader reader = new BufferedReader(new InputStreamReader(requestInputStream,"utf-8"));
	   StringBuffer stringBuffer = new StringBuffer("");
	   String tempString;
	   while((tempString = reader.readLine())!=null){
		   stringBuffer.append(tempString);
	   }
	   reader.close();
	   
	   String requestJsonString = stringBuffer.toString();
	   
	   
	   
	   
	}

}
